package cn.zhp.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;

import java.util.Date;

/**
 * easyexcel演示实体类
 */
public class Student {

    //设置与表头的列名对应关系    可以省略  省略后默认是属性名命名
    @ExcelProperty(index = 0,value = "学生id")
    private Integer id;

    private String name;

    //设置excel日期格式
    @DateTimeFormat("yyyy年MM月dd日")
    private Date birthday;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }
}
